package basedemo;

public class Mon {
    public void show(Number name){
        System.out.println("father---show");
    }
    private static class Son extends Mon {
        @Override
        public void show(Number name) {
            System.out.println("son ----show");
        }
        // public void show(Integer  num) {
        //     System.out.println("num ----show");
        // }
    }
    public static void test01(Mon mon){
        mon.show(12);
    }
    public static void main(String[] args) {
        test01(new Son());
        //Haha.Niubi niu=null;
        //niu.hou();
    }

}
